package com.huangpuweb.api.service.imp;

import com.huangpuweb.api.model.QzJJZDRidPredShort;
import com.huangpuweb.api.model.QzJJZDRidPredShortRowMapper;
import com.huangpuweb.api.service.QzJjzdApiService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QzJjzdApiServiceImp extends BaseJjzdDataServiceImp implements QzJjzdApiService {


    @Override
    public List<QzJJZDRidPredShort> getListQzJJZDRidPredShort(String roadId, String dataTimeStamp) {
        String sql="select pred_time,speed,congestion_index,vol_in,step_index from rid_pred_short where rid =? and pred_time >=? ORDER BY pred_time asc";
        return getEntryList(sql,new QzJJZDRidPredShortRowMapper(),new Object[]{roadId,dataTimeStamp});
    }
}
